﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NsbExtensions.EndpointMetadata;

namespace NsbExtensions.Server.Management.Repositories
{
    public interface IEndpointMetadataRepository
    {
        IEndpointDescription GetEndpointMetadataByEndpointID(string endpointId);
        IEndpointDescription GetEndpointMetadataByAddress(string endpointMessageBusAddress);

        List<IEndpointDescription> GetAllEndpoints();

        void AddOrUpdateEndpoint(IEndpointDescription endpointMetadata);
        void RemoveEndpoint(string endpointId);

    }
}